/**
 * 
 */


(function(){
    var App = TM.App = TM.App || {}
})();


(function(){
    
    /**
     * 
     */
    var Texture = TM.App.Texture = TM.createClass({
        
        init: function() {
            this.canvas = document.createElement("canvas");
            
            this.context = this.canvas.getContext("2d");
        },
        
        save: function() {
            var data_url = this.canvas.toDataURL();
            data_url = data_url.replace("image/octet-stream");
            window.open(data_url, "save");
            // console.log(texture.canvas.toDataURL());
        },
        
    });
    
    
})();















